<div id="content">

    <div id="content-header">

        <div id="breadcrumb"><a href="<?php echo site_url('Login/login') ?>" title="Go to Home" class="tip-bottom"><i
                class="icon-home"></i> 主页</a> <a href="#" class="current">财务管理</a></div>

        <h1>财务数据列表</h1>

    </div>

    <div class="container-fluid">

        <hr>

        <div class="row-fluid">

            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"><i class="icon-th"></i></span>
                        <h5>Data table</h5>
                    </div>

                    <div class="widget-content nopadding">
                        <table class="table table-bordered data-table">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>时间</th>
                                <th>流水</th>
                                <th>利润</th>
                                <th>当前持卡总量</th>
                                <th>充值总量</th>
                                <th>消耗总量</th>
                                <th>活动赠送总量</th>
                                <th>折扣损耗</th>
                                <th>活动赠送价值</th>
                                <th>单价</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $rows=$data[0];
                            foreach($rows as $value):
                            ?>
                            <tr class="gradeX">
                                <td><?php  echo $value['id']?></td>
                                <td><?php  echo 1234546 ?></td>
                                <td><?php  echo $value['tn']*$value['bpm']?></td>
                                <td class="center"><?php  echo $value['tn']*$value['bpm']-$value['ac']*$value['bpm']-$value['cwm']?></td>
                                <td class="center"><?php  echo $value['acc']?></td>
                                <td class="center"><?php  echo $value['tn']?></td>
                                <td class="center"><?php  echo $value['sx']?></td>
                                <td class="center"><?php  echo $value['ac']?></td>
                                <td class="center"><?php  echo $value['cwm']?></td>
                                <td><?php echo $value['ac']*$value['bpm']?></td>
                                <td><?php echo $value['bpm']?></td>
                            </tr>
                            <?php    endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>

    </div>

</div>